<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>联系我们</title>
    <style>
        /* 全局样式 */
        * {
            box-sizing: border-box;
        }

        body {
            font-family: "Segoe UI", "Helvetica Neue", sans-serif;
            color: #333;
            margin: 0;
            padding: 0;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            margin: 0;
        }

        /* 头部样式 */
        header {
            background-color: #0C192C;
            color: #fff;
            padding: 20px;
            text-align: center;
        }

        header h1 {
            font-size: 48px;
            font-weight: bold;
            margin-bottom: 20px;
            letter-spacing: 2px;
        }

        .container {
            max-width: 1100px;
            height: 500px;
            margin: 0 auto;
            padding: 50px;
            background-color: #fff;
            /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .info {
            flex-basis: 47%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .info span {
            color: #808080;
        }

        #aMap-container {
            flex-basis: 47%;
            height: 100%;
            border: 1px solid rgb(204, 204, 204);
        }

        /* 底部样式 */
        footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            background-color: #f5f5f5;
            padding: 20px;
            text-align: center;
            display: flex;
            justify-content: center;
            font-size: 14px;
        }

        footer p {
            bottom: 0;
            color: #888;
            margin: 0;
        }

        footer a{
            margin-right: 10px;
            color: #287ce3;
            text-decoration:none;
        }

        .label-info {
            position: relative;
            margin: 0;
            top: 0;
            right: 0;
            min-width: 0;
        }
    </style>

    <script src="https://webapi.amap.com/loader.js"></script>
    <script type="text/javascript">
        window._AMapSecurityConfig = {
            securityJsCode: "13a62792eaed104ee07ecbdadeb6de18",
        }
    </script>
</head>

<body>
    <header>
        <h1>联系我们</h1>
    </header>
    <div class="container">
        <div class="info">
            <div>
                <h1 style="font-size:24px;margin-bottom: 30px; color: #333;">
                    深圳市汉德网络科技有限公司
                </h1>
                <span>全国服务热线：</span><br>
                <span style="font-style: italic;font-weight: 700; font-size:25px;color:#287ce3;">400-835-8305</span>
                <p>
                    <span>电话：0755-86576752</span>
                </p>
                <p>
                    <span>邮箱：sales@hand-hitech.com</span>
                </p>
                <p>
                    <span>地址：深圳市宝安区新安街道龙井社区建安一路9号恒明珠金融大厦东座701</span>
                </p>

            </div>
        </div>
        <div id="aMap-container"></div>
    </div>
    <!-- <footer>
        <a href="https://static-oss.suiniyun.cn/aboutUs.html" target="_blank">关于我们</a>
        <a href="https://static-oss.suiniyun.cn/contactUs.html" target="_blank">联系我们</a>
        <p>Copyright © 2023 深圳市汉德网络科技有限公司 版权所有</p>
        <a href="https://beian.miit.gov.cn" target="_blank">粤ICP备17055485号</a>
    </footer> -->
</body>

<script type="text/javascript">
    AMapLoader.load({
        key: "eb8dc8f335fe8f839bd3fc12c8c7758e",
        version: "2.0",
        plugins: ['AMap.PlaceSearch']
    }).then((AMap) => {
        const map = new AMap.Map('aMap-container');
        // 地址检索
        const placeSearch = new AMap.PlaceSearch({
            city: '深圳',
            pageSize: 10, // 单页显示结果条数
            pageIndex: 1, // 页码
            citylimit: true, // 是否强制限制在设置的城市内搜索
            autoFitView: true
        })
        placeSearch.search('汉德网络科技', (status, result) => {
            if (result && typeof result === 'object' && result.poiList) {
                const list = result.poiList.pois
                if (list.length > 0) {
                    map.setZoomAndCenter(17, list[0].location)
                    const marker = new AMap.Marker({
                        position: list[0].location,
                        anchor: 'bottom-center',
                    });
                    map.add(marker);
                    // marker.on('click', () => {
                    //     marker.setLabel({
                    //         direction: 'right',
                    //         offset: new AMap.Pixel(10, 0),  //设置文本标注偏移量
                    //         content: "<div class='label-info'>深圳市汉德网络科技有限公司</div>",
                    //     });
                    // })

                }
            }
        })
    }).catch((e) => {
        console.error(e);  //加载错误提示
    });
</script>

</html>